package com.github.iot.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * TODO
 *
 * @Author: 梁声洪
 * @Date: 2020/1/12 18:45
 * @Version: v1.0.0
 */
@Entity
public class UserToken {

    /**
     * 主键ID
     */
    @Id(autoincrement = true)
    private Long id;

    /**
     * 过期时间
     */
    @NotNull
    private String date;

    /**
     * 授权码
     */
    @NotNull
    private String token;

    @Generated(hash = 1999816342)
    public UserToken(Long id, @NotNull String date, @NotNull String token) {
        this.id = id;
        this.date = date;
        this.token = token;
    }

    @Generated(hash = 2113443620)
    public UserToken() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDate() {
        return this.date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getToken() {
        return this.token;
    }

    public void setToken(String token) {
        this.token = token;
    }
    
}